In an effort to reduce monitoring noise, we've set up a simple Powershell script to throw hosts into maintenance mode prior to patching and deployment. Unfortunately we are seeing that while this prevents notification on the initial creation of the alert, we still get notifications (most of the time) when the alerts are closed - even if the host is still in maintenance mode.
The "comment" for these closed alerts are: "Auto-resolving alert: entity in maintenance mode."
Clearly SCOM knows the host is in maintenance mode, so my question is - why is it generating the alert and notifying on it - and what can we do to prevent it? If there isn't an easy way to prevent it - can we potentially set up our alerts to only fire when the closing user is NOT "Maintenance Mode"?
For reference the alerts that are generating are simple Windows service monitoring alerts.